﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using Lays.Manage.Core.News.Dtos;

namespace Lays.Manage.Core.News
{
	/// <summary>
    /// 新闻服务接口
    /// </summary>
    public interface INewsAppService : IApplicationService
    {
        #region 新闻管理

        /// <summary>
        /// 根据查询条件获取新闻分页列表
        /// </summary>
        Task<PagedResultDto<NewsListDto>> GetPagedNewssAsync(GetNewsInput input);

        /// <summary>
        /// 通过Id获取新闻信息进行编辑或修改 
        /// </summary>
        Task<GetNewsForEditOutput> GetNewsForEditAsync(NullableIdDto<int> input);

		  /// <summary>
        /// 通过指定id获取新闻ListDto信息
        /// </summary>
		Task<NewsListDto> GetNewsByIdAsync(EntityDto<int> input);
        
        /// <summary>
        /// 新增或更改新闻
        /// </summary>
        Task CreateOrUpdateNewsAsync(CreateOrUpdateNewsInput input);
        
        /// <summary>
        /// 新增新闻
        /// </summary>
        Task<NewsEditDto> CreateNewsAsync(NewsEditDto input);

        /// <summary>
        /// 更新新闻
        /// </summary>
        Task UpdateNewsAsync(NewsEditDto input);

        /// <summary>
        /// 删除新闻
        /// </summary>
        Task DeleteNewsAsync(EntityDto<int> input);

        /// <summary>
        /// 批量删除新闻
        /// </summary>
        Task BatchDeleteNewsAsync(List<int> input);

        #endregion
        

    }
}
